package cn.flightcloud.eurekaclient.web.controller;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope
public class WelcomeController {
	
//	@Value("${server.port}")
    private String port;
//	@Value("${from}")
	private String from;
	
	@RequestMapping("/hi")
    public String home(@RequestParam String name) {
        return "hi "+name+",i am from port:" +port;
    }
	
	@RequestMapping("/from")
    public String from(@RequestParam String name) {
        return "hi "+name+",you are from：" +from;
    }

}
